package vn.edu.ptithcm.pim.service;

import vn.edu.ptithcm.pim.dom.TaskPriority;

import java.util.List;

import vn.edu.ptithcm.pim.dao.TaskPriorityDao;

@SuppressWarnings({ "rawtypes" })
public class TaskPriorityService {
	private TaskPriorityDao taskPriorityDao;

	public TaskPriorityDao getTaskPriorityDao() {
		return taskPriorityDao;
	}

	public void setTaskPriorityDao(TaskPriorityDao taskPriorityDao) {
		this.taskPriorityDao = taskPriorityDao;
	}

	public void save(TaskPriority taskPriority) {
		taskPriorityDao.save(taskPriority);
	}

	public void saveOrUpdate(TaskPriority taskPriority) {
		taskPriorityDao.saveOrUpdate(taskPriority);
	}

	public void lock(TaskPriority taskPriority) {
		taskPriorityDao.lock(taskPriority);
	}

	public void delete(TaskPriority taskPriority) {
		taskPriorityDao.delete(taskPriority);
	}

	public TaskPriority merge(TaskPriority taskPriority) {
		return taskPriorityDao.merge(taskPriority);
	}

	public TaskPriority findById(java.lang.Long id) {
		return taskPriorityDao.findById(id);
	}

	public List findByExample(TaskPriority taskPriority) {
		return taskPriorityDao.findByExample(taskPriority);
	}

	public List getAll() {
		return taskPriorityDao.getAll();
	}

	public List<TaskPriority> getPrioritiesToReport(Long projectId) {
		return taskPriorityDao.getPrioritiesToReport(projectId);
	}
}
